<?php
namespace Manager\Model;
use Think\Model\RelationModel;
/**
* ==============================================
* URL：http://www.liuhuanhui.cn
* ==============================================
* @date：2014-11-5
* @time：下午8:28:50
* @author：liuhuanhui
* @encoding：UTF-8
*/
class UsersModel extends RelationModel{//用户模型
	
	
	
	protected $_link=array(
			'auth_group' => array(
					'mapping_type' =>  self::MANY_TO_MANY,
					'class_name'=>  'auth_group',
					'foreign_key' =>  'uid',
					'relation_foreign_key' =>  'group_id',
					'relation_table'=>  'lhh_auth_group_access',
					'mapping_fields'=>'id,title',
			),
	);
	
}